package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.HousePreuploadOrderFollowerMapper;
import com.ruoyi.yipaiju.domain.HousePreuploadOrderFollower;
import com.ruoyi.yipaiju.service.IHousePreuploadOrderFollowerService;

/**
 * fo_house_preupload_order_followerService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class HousePreuploadOrderFollowerServiceImpl implements IHousePreuploadOrderFollowerService 
{
    @Autowired
    private HousePreuploadOrderFollowerMapper housePreuploadOrderFollowerMapper;

    /**
     * 查询fo_house_preupload_order_follower
     * 
     * @param id fo_house_preupload_order_follower主键
     * @return fo_house_preupload_order_follower
     */
    @Override
    public HousePreuploadOrderFollower selectHousePreuploadOrderFollowerById(Long id)
    {
        return housePreuploadOrderFollowerMapper.selectHousePreuploadOrderFollowerById(id);
    }

    /**
     * 查询fo_house_preupload_order_follower列表
     * 
     * @param housePreuploadOrderFollower fo_house_preupload_order_follower
     * @return fo_house_preupload_order_follower
     */
    @Override
    public List<HousePreuploadOrderFollower> selectHousePreuploadOrderFollowerList(HousePreuploadOrderFollower housePreuploadOrderFollower)
    {
        return housePreuploadOrderFollowerMapper.selectHousePreuploadOrderFollowerList(housePreuploadOrderFollower);
    }

    /**
     * 根据业务主键查询一条记录：fo_house_preupload_order_follower
     *
     * @param housePreuploadOrderFollower fo_house_preupload_order_follower
     * @return fo_house_preupload_order_follower
     */
    @Override
    public HousePreuploadOrderFollower selectOneHousePreuploadOrderFollower(HousePreuploadOrderFollower housePreuploadOrderFollower)
    {
        return housePreuploadOrderFollowerMapper.selectOneHousePreuploadOrderFollower(housePreuploadOrderFollower);
    }

    /**
     * 新增fo_house_preupload_order_follower
     * 
     * @param housePreuploadOrderFollower fo_house_preupload_order_follower
     * @return 结果
     */
    @Override
    public int insertHousePreuploadOrderFollower(HousePreuploadOrderFollower housePreuploadOrderFollower)
    {
        housePreuploadOrderFollower.setCreateTime(DateUtils.getNowDate());
        return housePreuploadOrderFollowerMapper.insertHousePreuploadOrderFollower(housePreuploadOrderFollower);
    }

    /**
     * 修改fo_house_preupload_order_follower
     * 
     * @param housePreuploadOrderFollower fo_house_preupload_order_follower
     * @return 结果
     */
    @Override
    public int updateHousePreuploadOrderFollower(HousePreuploadOrderFollower housePreuploadOrderFollower)
    {
        housePreuploadOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return housePreuploadOrderFollowerMapper.updateHousePreuploadOrderFollower(housePreuploadOrderFollower);
    }

    @Override
    public int updateHousePreuploadOrderFollowerCondition(HousePreuploadOrderFollower housePreuploadOrderFollower, HousePreuploadOrderFollower housePreuploadOrderFollowerCondition)
    {
                housePreuploadOrderFollower.setUpdateTime(DateUtils.getNowDate());
        return housePreuploadOrderFollowerMapper.updateHousePreuploadOrderFollowerCondition(housePreuploadOrderFollower, housePreuploadOrderFollowerCondition);
    }

    /**
     * 批量删除fo_house_preupload_order_follower
     * 
     * @param ids 需要删除的fo_house_preupload_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteHousePreuploadOrderFollowerByIds(Long[] ids)
    {
        return housePreuploadOrderFollowerMapper.deleteHousePreuploadOrderFollowerByIds(ids);
    }

    /**
     * 删除fo_house_preupload_order_follower信息
     * 
     * @param id fo_house_preupload_order_follower主键
     * @return 结果
     */
    @Override
    public int deleteHousePreuploadOrderFollowerById(Long id)
    {
        return housePreuploadOrderFollowerMapper.deleteHousePreuploadOrderFollowerById(id);
    }

    /**
     * 条件删除fo_house_preupload_order_follower
     *
     * @param housePreuploadOrderFollower fo_house_preupload_order_follower
     * @return 结果
     */
    @Override
    public int deleteHousePreuploadOrderFollowerByCondition(HousePreuploadOrderFollower housePreuploadOrderFollower)
    {
        return housePreuploadOrderFollowerMapper.deleteHousePreuploadOrderFollowerByCondition(housePreuploadOrderFollower);
    }

}
